package stool.strategy;

import java.math.BigDecimal;

/**
 * @author Felix YF Dong
 * @date 2021/5/2
 */
public class Main {

    public static void main(String[] args) throws Exception {

        CashTypeEnum type = CashTypeEnum.REBATE;

        CashContext ctx = new CashContext(type);

        System.out.println(ctx.getResult(BigDecimal.valueOf(1000)));
    }
}
